const statusButton = [
    { status: '0', button: ['跳过', '已邮寄'] },
    { status: '1', button: ['待收货','物流信息'] },
    { status: '2', button: ['确认收货','物流信息'] },
    { status: '3', button: [] },
    { status: '4', button: ['上架','物流信息'] },
    { status: '5', button: ['主播选品', '下架', '打印条码'] },
    { status: '6', button: ['发起初审', '下架', '变更主播', '打印条码'] },
    { status: '7', button: ['下架', '变更主播', '打印条码'] },
    { status: '8', button: ['发起初审', '下架', '变更主播', '打印条码'] },
    { status: '9', button: ['发起初审', '下架', '变更主播', '打印条码'] },
    { status: '10', button: ['发起初审', '下架', '变更主播', '打印条码'] },
    { status: '11', button: ['下架', '变更主播', '打印条码'] },
    { status: '12', button: ['价格复审', '下架', '变更主播', '打印条码'] },
    { status: '13', button: ['无合同审批', '下架', '变更主播', '打印条码'] },
    { status: '14', button: ['入库', '下架', '变更主播', '打印条码'] },
    { status: '15', button: ['入库', '下架', '变更主播', '打印条码'] },
    { status: '16', button: ['下架', '变更主播', '打印条码'] },
    { status: '17', button: ['重新入库', '下架', '变更主播', '打印条码'] },
    { status: '18', button: ['变价审核', '打印条码'] },
    { status: '19', button: ['打印条码'] },
    { status: '20', button: ['变价审核', '打印条码'] },
    { status: '21', button: ['变价审核', '打印条码'] },
    { status: '22', button: ['下架', '变更主播', '打印条码'] },
    { status: '-1', button: ['上架', '退还'] },
    { status: '-2', button: [] },
]
type AuditStatusId = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18' | '19' | '20' | '21' | '22' | '-1' | '-2';

export const auditStatusButtonById = (id: AuditStatusId): string[] | undefined => {
    const item = statusButton.find(item => item.status === id);
    return item ? item.button : [];
};
